﻿@model IEnumerable<HumanResourceSystem.Models.EmployeeEvaluation>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>员工评价</h2>

<p>
    @Html.ActionLink("创建新的员工评价", "Create")
    @using (Html.BeginForm())
    {
    <p>
        员工号查询： @Html.TextBox("SearchID")
        <input type="submit" value="查询" />
        姓名查询： @Html.TextBox("SearchString")
        <input type="submit" value="查询" />
        
    </p>
    }
    @using (Html.BeginForm("Index", "EmployeeEvaluations", FormMethod.Post))
    {
        <p>
            清除查询结果：
            <input type="submit" value="清除查询" />
        </p>
    }
</p>
<table class="table">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.IDCard)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Name)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Text)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.NameEe)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Date)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.IDCard)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Text)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.NameEe)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Date)
        </td>
        <td>
            @Html.ActionLink("编辑", "Edit", new { id=item.Id }) |
            @Html.ActionLink("详细", "Details", new { id=item.Id }) |
            @Html.ActionLink("删除", "Delete", new { id=item.Id })
        </td>
    </tr>
}

</table>
